<?php

class Application_Form_Cadastro extends Zend_Form
{

    public function init()
    {

        $this->setMethod('post');

        $nome = $this->addElement('text', 'nome', array(
            'label'      => 'Seu nome:',
            'required'   => true,
            'filters'    => array('StringTrim'),
            'validators' => array(
                array('validator' => 'StringLength', 'options' => array(1, 60))
            )
            
        ));

        $email = $this->addElement('text', 'email', array(
            'label'      => 'Seu endereço de e-mail:',
            'required'   => true,
            'filters'    => array('StringTrim'),
            'validators' => array(
                'EmailAddress',
            )
        ));

        
        $captcha = $this->addElement('captcha', 'captcha', array(
            'label'      => 'Por favor, digite as letras a seguir:',
            'required'   => true,
            'captcha'    => array(
                'captcha' => 'ReCaptcha',
                'privkey' => '6LdjaboSAAAAALpmZNgOYyERB450cuPcskBGsD7s',
                'pubkey'  => '6LdjaboSAAAAAPgAgxhuCadPbhw8rK336CI_xN9L',
                'timeout' => 300
            )
        ));

        //botao de criar conta
        $criar = $this->addElement('submit', 'submit', array(
            'ignore'   => true,
            'label'    => 'Solicitar conta',
        ));

        // alguma protecao contra flood.
        $this->addElement('hash', 'csrf', array(
            'ignore' => true,
        ));

    }


}

